package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ly.common.core.domain.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 流程模型(用于json模型和activiti模型关联)
 * @author cxl
 */
@Data
@TableName ("erp_act_model")
@Accessors(chain = true)
@ApiModel (value = "流程模型", description = "流程模型")
public class ActModelEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("流程编码")
    @TableField (value = "code")
    private String code;

    @ApiModelProperty ("流程名称")
    @TableField (value = "name")
    private String name;

    @ApiModelProperty ("版本信息")
    @TableField (value = "version")
    private Integer version;

    @ApiModelProperty ("排序")
    @TableField (value = "sort")
    private Integer sort;

    @ApiModelProperty ("分组ID")
    @TableField (value = "group_id")
    private String groupId;

    @ApiModelProperty ("备注")
    @TableField (value = "remark")
    private String remark;

    @ApiModelProperty ("流程对象")
    @TableField (value = "model_data")
    private String modelData;

    @ApiModelProperty ("表单数据")
    @TableField (value = "form_data")
    private String formData;

    @ApiModelProperty ("流程部署对象id( act_re_procdef表id)")
    @TableField (value = "process_def_id")
    private String processDefId;

    @ApiModelProperty ("部署id( act_re_deployment表 id)")
    @TableField (value = "deploy_id")
    private String deployId;

    @ApiModelProperty ("流程实例状态（1激活 2挂起）")
    @TableField (value = "state")
    private Integer state;

    @ApiModelProperty ("创建时间")
    @TableField (value = "create_time")
    private Date createTime;

    @ApiModelProperty ("修改时间")
    @TableField (value = "change_time")
    private Date changeTime;

    @TableField (value = "is_used")
    @TableLogic
    private Integer isUsed;

}
